﻿using System.IO;
using System.Reflection;
using System.Windows.Media.Imaging;

namespace PLCSharp.CoreModel.Tools
{
    public class FileTools
    {



        public static BitmapImage GetImage(string fileName)
        {
            var bmp = new BitmapImage();
            bmp.BeginInit();
            bmp.UriSource = new Uri(fileName);
            bmp.EndInit();
            bmp.Freeze();
            return bmp;
        }

    }
}